<?php

/**
 * @Author: zhibinm (113664000@qq.com)
 * @Date:   2018-04-16 15:03:34 
 * @Copyright:   xuebingsi
 * @Last Modified by:   Zhibinm
 * @Last Modified time: 2018-04-16 17:30:11
 */

include './Car.class.php';

include './Shengwu.class.php';

include './Dongwu.class.php';

include '/Dog.class.php';

include './Cat.class.php';

// $dog = new Dog();

// $dog->chi();

// var_dump($dog);

// $cat = new Cat();

// $cat->jiao();

// var_dump($cat);
// $car = new Car("红色");

// var_dump($car);

// $car1 = new Car();
// $car1->color = "红色";
// $car1->ziaren();
// // unset($car1);
// var_dump($car1);

// $car2 = new Car();
// var_dump($car2);

/**
* 
*/
class Father 
{
	public $name ='11';

	private function go()
	{
		echo "gogo";
	}

	protected function hu()
	{
		$this->go();
	}
}
class Son extends Father
{
	public $name = "22";
	
	private function test()
	{
		echo "test";
	}

	public function test1()
	{
		$this->hu();
		echo 999;
	}
}


/**
* 
*/
class Upload
{
	
	public function __construct(argument)
	{
		mkidr();
	}
	public function save($value='')
	{
		self::changData();
		$this->checkError();
		$this->checkSize();
		$this->checkType();
		$this->move();
	}

	public static function changData()
	{
		
	}

	private function checkError($value='')
	{
		# code...
	}

	private function checkType($value='')
	{
		# code...
	}

	private function checkSize($value='')
	{
		# code...
	}

	private function move($value='')
	{
		# code...
	}
}

Upload::changData();

// $upload = new Upload();

// $upload->save();

// $xbs = new Son();

// $xbs->test1();
